server:server.cpp tcp_server.cpp task.cpp account.cpp
	g++ -std=c++11 $^ -o $@ -g -lpthread -ljsoncpp -D__TEST_DEBUG__

server_d:server.cpp tcp_server.cpp task.cpp account.cpp
	g++ -std=c++11 $^ -o $@ -lpthread -ljsoncpp -D__RELEASE__

client:client.cpp
	g++ -std=c++11 $^ -o $@

.PHONY:clean
clean:
	rm -rf server server_d client